DXL to manage a column

I would like to write an DXL script to modify an existing column.

If no value is in the column, I would like to write N/A.

My first idea was to write :

if (obj."name_of_the column" "" == "") display "N/A" but the initial data of the colum are erased.

Any ideas ?
god_on_earth - Thu Sep 30 07:31:35 EDT 2010

Re: DXL to manage a column
Mathias Mamsch - Thu Sep 30 09:07:21 EDT 2010

You should try:
 

if (obj."name_of_the_attribute" "" == "") display "N/A" else display obj."name_of_the_attribute"

 


If you want to check for default values (meaning, if an object attribute has its default value, you can use:

 

 

bool hasSpecificValue(Object o, AttrDef attrDef)



Regards, Mathias



 

 


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS